GtkEntryCompletion: add a sanity check
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2011 00:07:14 +0000 (20:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jun 2011 00:07:14 +0000 (20:07 -0400)
Patch by John Lindgren,
https://bugzilla.gnome.org/show_bug.cgi?id=650110

gtk/gtkentrycompletion.c

index 41f707f4325613fe131c4384285d2e615ee220d1..b88fa802f3b72fcc3ef13e394f3c4f23eec7d63f 100644 (file)
@@ -1263,6 +1263,7 @@ gtk_entry_completion_complete (GtkEntryCompletion *completion)
   gchar *tmp;
 
   g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion));
+  g_return_if_fail (GTK_IS_ENTRY (completion->priv->entry));
 
   if (!completion->priv->filter_model)
     return;